home *** CD-ROM | disk | FTP | other *** search
- on speedMovie
- global gSpeed
- set thismovie to the name of cast the castNum of sprite 2
- repeat while the mouseDown
- cursor(200)
- set gMoviePixel to 2.0 / 350
- set beginH to the locH of sprite 3
- if the mouseH <> beginH then
- if the mouseH < beginH then
- if the mouseH < 258 then
- set the locH of sprite 3 to 258
- set gSpeed to 0
- else
- set difH to beginH - the mouseH
- set the locH of sprite 3 to the mouseH
- set gSpeed to gSpeed - (difH * gMoviePixel)
- end if
- else
- if the mouseH > 467 then
- set the locH of sprite 3 to 467
- set gSpeed to 2
- else
- set difH to the mouseH - beginH
- set the locH of sprite 3 to the mouseH
- set gSpeed to gSpeed + (difH * gMoviePixel)
- end if
- end if
- end if
- if gSpeed < 0 then
- set gSpeed to 0
- end if
- updateStage()
- end repeat
- set the movieRate of sprite 2 to gSpeed
- updateStage()
- cursor(0)
- end
-